/*************************************************************************
  > File Name: 05.thr_num_max.c
  > Author: icebear
  > Mail: 3322366195@qq.com
  > Created Time: Fri 14 Jul 2023 02:56:09 PM UTC
  编写程序，输入a,b,c三个数，输出其中的最大值。 (三目运算符实现) 
 ************************************************************************/

#include <stdio.h>
#define MAX(a,b,c) a>b?(a>c?a:c):(b>c?b:c)
int main()
{
    int num1,num2,num3;
    printf("input three number\n");
    scanf("%d%d%d",&num1,&num2,&num3);
    printf("max is %d\n",MAX(num1,num2,num3));
}

